package com.corpgovernment.common.apollo;

import com.ctrip.corp.obt.generic.utils.EnvironmentHolder;

public final class BaseConfig {

    private static final String PREFIX = "common.";

    private static final CommonConfig DEFAULT_CONFIG = k -> EnvironmentHolder.getProperty(PREFIX + k);

    private BaseConfig() {
    }

    /**
     * Returns a default implementation of the registry config backed by system properties.
     */
    public static CommonConfig defaultConfig() {
        return DEFAULT_CONFIG;
    }
}
